<template>
	<view class="content"><u-parse :html="share.content" :use-cache="true" :lazy-load="true" :show-with-animation="true" :selectable="true" :tag-style="style"></u-parse></view>
</template>

<script>
import { open_code } from '@/api/index.js';
export default {
	data() {
		return {
			style: {
				p: 'text-indent: 2em;line-height: 1.5;color:#636e72',
				h3: 'padding:5rpx 0;color:#2d3436'
			}
		};
	},
	onLoad() {
		this.getList();
	},
	methods: {
		async getList() {
			open_code('about').then(res => {
				this.share = res.data[0];
				this.$set_title(res.data[0].title)
			});
		}
	}
};
</script>

<style lang="scss" scoped>
.content {
	padding: 0 25rpx 35rpx;
	line-height: 1.5;
}
</style>
